<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

    <head>
        <title th:text="${pageTitle}"></title>
        <div data-th-replace="layout/head-top"></div>
    </head>

    <body class="gray-bg">
        <div class="wrapper wrapper-content animated fadeInLeft">
            <div data-th-replace="common/functionDepict"></div>
            <div>
                <div class="row">
                    <div class="pt10">
                        <div class="col-sm-8">
                            <div class="ibox float-e-margins">
                                <div class="ibox-title">
                                    <h5>审核推广员</h5>
                                </div>
                                <div class="ibox-content clearfix pt10">
                                    <div class="form-horizontal">
                                        <input type="hidden" id="agentUserId" name="agentUserId" th:value="${agentUser['id']}"/>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">推广员名称</label>
                                            <div class="col-sm-10"><p class="form-control-static" th:text="${agentUser['agentUserName']}"></p></div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">推广员等级</label>
                                            <div class="col-sm-10">
                                                <p class="form-control-static" th:text="${agentUser['userType']} == 1?'一级推广员':'二级推广员'"></p>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">手机号码</label>
                                            <div class="col-sm-10"><p class="form-control-static" th:text="${agentUser['mobile']}"></p></div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div th:if="${agentUser['userType']} == 2">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">上级推广员</label>
                                                <div class="col-sm-10"><p class="form-control-static" th:text="${agentUser['parentAgentUser']['agentUserName']}"></p></div>
                                            </div>
                                            <div class="hr-line-dashed"></div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">分成方式</label>
                                            <div class="col-sm-10">
                                                <p class="form-control-static" th:text="${agentUser['divideType']} == 1?'固定分成':'——'"></p>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div th:if="${agentUser['userType']} == 1">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">一级分成比例</label>
                                                <div class="col-sm-10">
                                                    <p class="form-control-static" th:text="${agentUser['oneScale']} + '%'"></p>
                                                </div>
                                            </div>
                                            <div class="hr-line-dashed"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">二级分成比例</label>
                                                <div class="col-sm-10">
                                                    <p class="form-control-static" th:text="${agentUser['twoScale']} + '%'"></p>
                                                </div>
                                            </div>
                                            <div class="hr-line-dashed"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">奖金分成比例</label>
                                                <div class="col-sm-10">
                                                    <p class="form-control-static" th:text="${agentUser['bonusScale']} + '%'"></p>
                                                </div>
                                            </div>
                                            <div class="hr-line-dashed"></div>
                                        </div>
                                        <div th:if="${agentUser['userType']} == 2">
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label">分成比例</label>
                                                <div class="col-sm-10">
                                                    <p class="form-control-static" th:text="${agentUser['parentAgentUser']['twoScale']} + '%'"></p>
                                                </div>
                                            </div>
                                            <div class="hr-line-dashed"></div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label">结算周期</label>
                                            <div class="col-sm-10">
                                                <p class="form-control-static" th:if="${agentUser['settType']} == 1">随时结</p>
                                                <p class="form-control-static" th:if="${agentUser['settType']} == 2">月结</p>
                                                <p class="form-control-static" th:if="${agentUser['settType']} == 3">年结</p>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <div class="col-sm-8 col-sm-offset-1">
                                                <button id="tongguo" class="btn btn-primary ml10" type="button" style="width:100px;">通过</button>
                                                <button id="bohui" class="btn btn-danger ml10" type="button" style="width:100px;">驳回</button>
                                                <button class="btn btn-white ml10" type="button" onclick="history.go(-1)" style="width:100px;">取消</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                       <div data-th-replace="common/importantNotes"></div>
                    </div>
                </div>
            </div>
        </div>
        <div data-th-replace="layout/head-footer"></div>
        <script type="text/javascript" th:src="@{{path}/admin/business/agent/user/aduit-agent-user.js?v={v}(path=${staticPath},v=${v})}"></script>
    </body>
</html>
